const Key = 'sl-logistics_userInfo'

export function getUserInfo() {
  return JSON.parse(localStorage.getItem(Key))
}

export function setUserInfo(userInfo) {
  return localStorage.setItem(Key, JSON.stringify(userInfo))
}

export function removeUserInfo() {
  return localStorage.removeItem(Key)
}
